package top.kaoshanji.p2ch10b;

import java.io.Serializable;

/**
 * 代码清单-p2ch10b-323页a：说明对象持久化机制的示例Java类
 * author kaoshanji
 * ^_^
 * create time 2025/2/2 21:01
 */
public class User implements Serializable {

    private String name;
    private String email;
    private Address address;

    public User(String name, String email) {
        this.name = name;
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }
}
